//
//  DiscoverController.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/9/11.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class DiscoverController: BaseMenuController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationItem.title = "发现"
        
        view.backgroundColor = UIColor.white
        
        titleScrollView.backgroundColor = UIColor.colorWithA(r: 255, g: 255, b: 255, A: 0.5)
        
        
        setupAllChildViewController()
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        
        // Dispose of any resources that can be recreated.
    }
    
    
    func setupAllChildViewController() {
        /*
         襄阳出行
         社区通告
         在线报修
         车位房屋出租
         建议、表扬、投诉
         意见反馈
         外卖
         */
        
        let tempVC0 = BusinessActivityVC()
        tempVC0.isDiscover = true
        tempVC0.title = "生活精选"
        addChildViewController(tempVC0)
        
        let tempVC1 = PeripheryServiceVC()
        tempVC1.title = "本地服务"
        addChildViewController(tempVC1)
        
        let tempVC2 = NewCityDynamicVC()
        tempVC2.title = "新城动态"
        addChildViewController(tempVC2)
        
        let tempVC3 = OwnerDynamicVC()
        tempVC3.title = "业主动态"
        addChildViewController(tempVC3)
        
        
    }
    

   
}



